package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.ConfirmBeen;
import cn.xfdzx.android.apps.shop.bean.DetailPringBean;
import cn.xfdzx.android.apps.shop.bean.GoodsLimitBean;
import io.reactivex.Flowable;


/**
 * @author zf
 * @date 2020/8/17.
 * Description：商家订单详情
 */

public interface OrderDetailPringContract {
    interface Model {
        Flowable<DetailPringBean> getOrderDetailPring(String order_id);

        Flowable<DetailPringBean> getCancleOrder(String order_id);

        Flowable<ConfirmBeen> confirm(String order_id);
    }

    interface View extends BaseView {
        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();

        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void getOrderDetailPringSuccess(DetailPringBean bean);

        void getCancleOrderSuccess(DetailPringBean bean);
        void onConfirmSuccess(ConfirmBeen bean,int position);


    }

    interface Presenter {

        /**
         *列表
         */
        void getOrderDetailPring(String order_id);

        void getCancleOrder(String order_id);

        void confirm(String from,  int position);

    }
}
